Skip to content

fix(workspace): fallback to other conversations when active is missing#425

Merged
JeanMertz merged 4 commits intomainfrom
prr2
Mar 10, 2026
Merged

fix(workspace): fallback to other conversations when active is missing#425
JeanMertz merged 4 commits intomainfrom
prr2

Conversation

@JeanMertz
Copy link
Collaborator

The previous logic for loading a workspace would only attempt to fall back to the last known conversation if the active one was missing. But if the active conversation is the last known conversation, it would retry the same conversation again, and then fail.

JP now iterates backwards through the entire history of available conversation IDs until it finds a valid metadata file on disk. This improves the resilience of the workspace loading process when conversation files have been manually deleted or moved outside of the application.

The previous logic for loading a workspace would only attempt to fall
back to the last known conversation if the active one was missing. But
if the active conversation *is* the last known conversation, it would
retry the same conversation again, and then fail.

JP now iterates backwards through the entire history of available
conversation IDs until it finds a valid metadata file on disk. This
improves the resilience of the workspace loading process when
conversation files have been manually deleted or moved outside of the
application.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
… missing

Signed-off-by: Jean Mertz <git@jeanmertz.com>
… missing

Signed-off-by: Jean Mertz <git@jeanmertz.com>
… missing

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit f1768ba into main Mar 10, 2026
11 checks passed
@JeanMertz JeanMertz deleted the prr2 branch March 10, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant